home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / cli / mx2src.arc / XS.MOD < prev   
Text File  |  1989-01-05  |  571b  |  20 lines

  1. MODULE  xs;
  2. FROM    SYSCALL         IMPORT  SpintInfo;
  3. FROM    GEMDOS          IMPORT  Term;
  4. FROM    Terminal        IMPORT  WriteString,WriteLn;
  5. VAR     spintcmd        :       POINTER TO ARRAY [0..2] OF LONGCARD;
  6.         XS              :       PROC;
  7.         ok              :       BOOLEAN;
  8. BEGIN
  9.         IF SpintInfo(1,spintcmd) THEN
  10.            XS:=PROC(spintcmd^[1]);
  11.            XS();
  12.         ELSE
  13.            WriteLn;
  14.            WriteString("Background xmodem not running");
  15.            WriteLn;
  16.            ok:=Term(-1);
  17.         END;
  18.         ok:=Term(0);
  19. END     xs.
  20.